The manner in which the helices or sheets of a protein are folded to give a three-dimensional structure